package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class PersonCoupons {

    /**
     *
     *id
     */
    private Integer id;

    /**
     *
     *用户id
     */
    @NotNull
    private Integer userId;

    /**
     *
     *红包id
     */
    @NotNull
    private Integer couponsId;

    /**
     *
     *有效日期
     */
    @NotNull
    private String time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCouponsId() {
        return couponsId;
    }

    public void setCouponsId(Integer couponsId) {
        this.couponsId = couponsId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time == null ? null : time.trim();
    }
}